package com.yanghx.user.server.service.impl;

import com.yanghx.user.server.entity.UserInfo;
import com.yanghx.user.server.repository.UserRepository;
import com.yanghx.user.server.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author yangHX
 * createTime  2019/9/14 21:10
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserRepository userRepository;

    @Override
    public UserInfo findByOpenid(String openid) {
        return userRepository.findByOpenid(openid);
    }
}
